package com.lagou.rpc.client.netty;

import com.lagou.rpc.common.converter.Converter;
import com.lagou.rpc.common.converter.FastJsonConverter;
import lombok.Data;

/**
 * 连接
 *
 * @author wlz
 * @date 2020/5/1
 */
@Data
public class NettyConnectionConfig {
    /**
     * 工作线程数
     */
    private int workerThreadSize = 4;
    /**
     * 对象转换器
     */
    private Converter converter = new FastJsonConverter();
    /**
     * 连接主机
     */
    private String host = "localhost";
    /**
     * 连接端口
     */
    private int port = 9000;
    /**
     * 请求等待超时
     */
    private long timeout = 30000;
}
